package fnord.illuminati.action.actions;

import fnord.illuminati.action.AttackModifierAction;
import fnord.illuminati.card.groupcards.Survivalists;
import fnord.illuminati.order.AttackOrder;
import fnord.illuminati.order.AttackType;

public class SurvivalistsAction implements AttackModifierAction {
	private static final long serialVersionUID = 1664936632123654487L;

	@Override
	public int doAttack(AttackOrder order) {
		return 0;
	}

	@Override
	public int doDefend(AttackOrder order) {
		if ((order.getAttackType() == AttackType.CONTROL || order.getAttackType() == AttackType.NEUTRALIZE) && !(order.getTo() instanceof Survivalists)) {
			return -2;
		}
		else
			return 0;
	}
}
